﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="news.aspx.cs" Inherits="Web4Comment.news" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    <meta name="Generator" content="iWeb 3.0.4" />
    <meta name="iWeb-Build" content="local-build-20120101" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta name="viewport" content="width=1050" />
    <title>news</title>
    <link rel="stylesheet" type="text/css" media="screen,print" href="news_files/news.css" />
    <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='media/css/newsIE.css'/><![endif]-->
    <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='media/css/IE8.css'/><![endif]-->
    <script type="text/javascript" src="js/log.js"></script>
    <script type="text/javascript" src="js/ajax.js"></script>
  </head>
  <body style="background: rgb(251, 251, 251); margin: 0px;" onblur="log()">
    <form id="urlForm" runat="server">
    <div style="text-align: center; ">
      <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word;  text-align: left; width: 1050px; " id="body_content">
        <div style="background: transparent url(news_files/backgroundimage_1.jpg) no-repeat scroll center center; width: 1050px; ">
          <div style="float: left; margin-left: 0px; position: relative; width: 1050px; z-index: 0; " id="nav_layer">
            <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
            <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div>
          </div>
          <div style="float: left; height: 0px; line-height: 0px; margin-left: 0px; position: relative; width: 1050px; z-index: 10; " id="header_layer">
            <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
          </div>
          <div style="margin-left: 0px; position: relative; width: 1050px; z-index: 5; " id="body_layer">
            <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
            <div style="height: 20px; width: 66px;  height: 20px; left: 922px; position: absolute; top: 41px; width: 66px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
              <img src="news_files/about.gif" alt="" style="border: none; height: 20px; width: 66px; " />
            </div>
            
            <div style="height: 20px; width: 66px;  height: 20px; left: 900px; position: absolute; top: 70px; width: 88px; z-index: 1; text-align: center;" 
                  class="tinyText style_SkipStroke stroke_0">
              <asp:LinkButton ID="userLinkButton" runat="server" PostBackUrl="~/profile.aspx">用户</asp:LinkButton>|
              <asp:LinkButton ID="logoutLinkButton" runat="server" PostBackUrl="~/logout.aspx">登出</asp:LinkButton>
            </div>

            <div style="height: 21px; width: 65px;  height: 21px; left: 772px; position: absolute; top: 40px; width: 65px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
              <img src="news_files/any.gif" alt="" style="border: none; height: 21px; width: 65px; " />
            </div>
            


            <div style="height: 21px; width: 66px;  height: 21px; left: 685px; position: absolute; top: 40px; width: 66px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
              <a href="friends.aspx" target="_self">
              <img src="news_files/friends.gif" alt="" 
                    style="border: none; height: 21px; width: 66px; " usemap="friends.aspx" /></a>
            </div>
            


            <div style="height: 19px; width: 44px;  height: 19px; left: 620px; position: absolute; top: 41px; width: 44px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
              <a href="main.aspx" target="_self">
              <img src="news_files/main.gif" alt="" 
                    style="border: none; height: 19px; width: 44px; " usemap="main.aspx" /></a>
            </div>
            


            <div style="height: 19px; width: 41px;  height: 19px; left: 859px; position: absolute; top: 41px; width: 41px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
              <a href="link.aspx" target="_self">
              <img src="news_files/sns.gif" alt="" style="border: none; height: 19px; width: 41px; " />
              </a>
            </div>
            


            <div style="height: 49px; width: 224px;  height: 49px; left: 64px; position: absolute; top: 26px; width: 224px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
              <img src="news_files/logo.gif" alt="" style="border: none; height: 49px; width: 224px; " />
            </div>
            


            <div style="height: 17px; width: 300px;  height: 17px; left: 102px; position: absolute; top: 91px; width: 300px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
              <img src="news_files/search.png" alt="" style="border: none; height: 17px; width: 300px; " />
            </div>
            <div style="height: 17px; width: 230px;  height: 17px; left: 165px; position: absolute; top: 93px; width: 234px; z-index: 1; " class="tinyText style_SkipStroke stroke_0">
                <asp:TextBox ID="urlTextBox" runat="server" BorderStyle="None" Height="70%" 
                    Width="100%" BorderWidth="0px" Font-Size="X-Small" ForeColor="Blue" ></asp:TextBox>
            </div>

            <div style="height: 17px; width: 50px;  height: 20px; left: 459px; position: absolute; top: 89px; width: 100px; z-index: 1; " 
                  class="tinyText style_SkipStroke stroke_0">
              <!--<img src="news_files/zhao.png" alt="" style="border: none; height: 52px; width: 46px; " /> -->
              <asp:Button ID="searchUrl" runat="server" Text="搜一下评论" onclick="Button1_Click" />   
            </div>


            <div style="height: 452px; width: 498px;  height: 452px; left: 102px; position: absolute; top: 121px; width: 498px; z-index: 1; " class="tinyText">
              <div style="position: relative; width: 498px; ">
                <img src="news_files/shapeimage_1.png" alt="" style="height: 452px; left: 0px; position: absolute; top: 0px; width: 498px; " />
              </div>
            </div>
            


            <div id="id1" style="height: 439px; left: 110px; position: absolute; top: 128px; width: 483px; z-index: 1; " class="style_SkipStroke_1 shape-with-text">
              <div class="text-content graphic_shape_layout_style_default_External_483_439" style="padding: 0px; ">
                <div class="graphic_shape_layout_style_default">
                    <iframe src= "http://www.qq.com" id="newsContentIframe" name= "f1 " frameborder="0" width="100%" height="417px" runat="server"></iframe>
                </div>
              </div>
            </div>
            
            <div id="recommend" 
                  style="height: 50px; left: 110px; position: absolute; top: 595px; width: 483px; z-index: 1; " 
                  class="tinyText">

                <table style="width:100%; font-size: small;">
                    <tr>
                        <td>
                            推荐给好友 :<asp:DropDownList 
                                ID="friendDropDownList" runat="server" Width="140px">
                            </asp:DropDownList>
                        </td>
                        <td align="right" width="120px">
                            <asp:Button ID="recommendButton" runat="server" Text="推荐给好友" Width="100px" 
                                onclick="recommendButton_Click" />
                        </td>
                    </tr>
                    </table>

            </div>

            <div style="height: 148px; width: 298px;  height: 148px; left: 642px; position: absolute; top: 131px; width: 298px; z-index: 1; " class="tinyText">
                <asp:DataList ID="commentsdl" runat="server" Width="100%" Font-Bold="True" 
                    CellPadding="4" ForeColor="#333333"  >
                    <AlternatingItemStyle BackColor="White" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <ItemStyle BackColor="#E3EAEB" />
                    <ItemTemplate>
                        <table style="width: 100%;">
                            <tr style="font-size: small">
                                <td><%#Eval("id") %>楼：</td>
                            </tr>
                            <tr style="font-size: small">
                                <td>
                                    <a href="profile.aspx?user=<%# Eval("user_username") %>"><b>
                                        <%# Eval("user_username") %></b></a>: &nbsp;<%# Eval("content") %><br /></td>
                            </tr>
                            <tr style="font-size: smaller">
                                <td>
                                    <div>
                                        At:&nbsp;
                                        <%# Eval("date")%>
                                    </div>
                                    <div style="float: right; right: 4px;">
                                        <asp:LinkButton ID="LinkButton1" runat="server" Text="回复" CommandArgument='<%# Eval("id")%>' OnClick="HandleReply" />
                                    </div>

                                </td>
                            </tr>
                        </table>
                        <div style="border-bottom: 1px dashed green">
                        </div>
                    </ItemTemplate>
                    <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                </asp:DataList>
                <asp:Panel ID="commentPanel" runat="server" Visible="False">
                <table>
                        <tr  style="font-weight: bold; font-size: medium">
                            <td valign="middle">
                                <asp:Label ID="commentLabel" runat="server" Text="有话要说："></asp:Label>
                            </td>
                        </tr>
                        <tr  style="font-weight: bold; font-size: small">
                            <td valign="middle">
                                <asp:TextBox ID="commentTextBox" runat="server" Height="80px" 
                                    TextMode="MultiLine" Width="291px"></asp:TextBox>
                            </td>
                        </tr>
                        
                        <tr>
                            <td valign="middle" align="right">
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="0" OnClick="HandleComment" Text="评论此新闻" Font-Size="Small" Font-Bold="True" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="middle">
                                <asp:Label ID="toLabel" runat="server" Font-Bold="True" Font-Size="Small" 
                                    ForeColor="#3333FF" Visible="false"></asp:Label>
                                <asp:Button ID="commentButton" runat="server" onclick="commentButton_Click" 
                                    Text="说一句" />
                            </td>
                        </tr>
                </table>
                </asp:Panel>
            </div>

            <div style=" width: 298px;   left: 642px; position: absolute; top: 131px; width: 298px; z-index: 1; " class="tinyText">
                <asp:Panel ID="addPanel" runat="server" Height="150px" Visible="False">

                    <table>
                        <tr  style="font-weight: bold; font-size: medium" align="center">
                            <td valign="middle">
                                <asp:Label ID="addLabel" runat="server" Text="还没有人分享该新闻，分享吧"></asp:Label>
                            </td>
                        </tr>
                        <tr >
                            <td valign="middle" align="center">
                                <asp:Button ID="addButton" runat="server" Text="分享" onclick="addButton_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>

            


            <div style="height: 43px; width: 85px;  height: 43px; left: 101px; position: absolute; top: 547px; width: 85px; z-index: 1; " class="tinyText">
              <div style="position: relative; width: 85px; ">
                <img src="news_files/shapeimage_8.png" alt="" style="height: 43px; left: 0px; position: absolute; top: 0px; width: 85px; " />
              </div>
            </div>
            


            <div style="height: 43px; width: 85px;  height: 43px; left: 177px; position: absolute; top: 547px; width: 85px; z-index: 1; " class="tinyText">
              <div style="position: relative; width: 85px; ">
                <img src="news_files/shapeimage_9.png" alt="" style="height: 43px; left: 0px; position: absolute; top: 0px; width: 85px; " />
              </div>
            </div>
            


            <div style="height: 43px; width: 85px;  height: 43px; left: 328px; position: absolute; top: 547px; width: 85px; z-index: 1; " class="tinyText">
              <div style="position: relative; width: 85px; ">
                <img src="news_files/shapeimage_10.png" alt="" style="height: 43px; left: 0px; position: absolute; top: 0px; width: 85px; " />
              </div>
            </div>
            


            <div style="height: 43px; width: 85px;  height: 43px; left: 404px; position: absolute; top: 547px; width: 85px; z-index: 1; " class="tinyText">
              <div style="position: relative; width: 85px; ">
                <img src="news_files/shapeimage_11.png" alt="" style="height: 43px; left: 0px; position: absolute; top: 0px; width: 85px; " />
              </div>
            </div>


            <div style="height: 43px; width: 85px;  height: 43px; left: 253px; position: absolute; top: 547px; width: 85px; z-index: 1; " class="tinyText">
              <div style="position: relative; width: 85px; ">
                <img src="news_files/shapeimage_12.png" alt="" style="height: 43px; left: 0px; position: absolute; top: 0px; width: 85px; " />
              </div>
            </div>
            <div style="height: 650px; line-height: 650px; " class="spacer"> 
              </div>
          </div>
          <div style="height: 0px; line-height: 0px; margin-left: 0px; position: relative; width: 1050px; z-index: 15; " id="footer_layer">
            <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
          </div>
        </div>
      </div>
    </div>
    <asp:Button ID="startButton" runat="server" Text="start"
            onclick="startButton_Click" Visible="False"/>
    <asp:Button ID="endButton" runat="server" Text="end"
            onclick="endButton_Click" Visible="False"/>
    <asp:Label ID="logID" runat="server" Text="log" Visible="False"></asp:Label>
    </form>   
  </body>
</html>



